package com.wwj.study.adapter;

/**
 * Created by lenovo on 2018/11/19.
 * 提供适配器转换
 */

public class LoginQQ implements ILogin {

    private Login login;

    public LoginQQ(Login login){
        this.login=login;
    }

    @Override
    public void login(String openId) {

        System.out.println("这里是QQ登录");

        Member member=new Member();
        member.setUserName(openId);
        member.setPassWord(null);

        login.toLogin(member);
    }
}
